package com.wc5818.wcOrderDetail.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wc5818.wcOrderDetail.entity.WcOrderDetail;
import com.wc5818.wcOrderDetail.mapper.WcOrderDetailMapper;
import com.wc5818.wcOrderDetail.service.IWcOrderDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author jobob
 * @since 2020-02-15
 */
@Service
@Primary
public class WcOrderDetailServiceImpl extends ServiceImpl<WcOrderDetailMapper, WcOrderDetail> implements IWcOrderDetailService {
    @Autowired
    private WcOrderDetailMapper wcOrderDetailMapper;

    @Override
    public Boolean addWcOrderDetail(WcOrderDetail wcOrderDetail) {
        int num = wcOrderDetailMapper.addWcOrderDetail(wcOrderDetail);
        if (num != 1) {
            return false;
        } else {
            return true;
        }
    }
}
